﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CardLogistics.Model.Ordering
{
    /// <summary>
    /// 卡片订货单_实体类
    /// </summary>
    [Serializable]
    public partial class Ordering_CardInfo
    {
        public Ordering_CardInfo()
        { }
        #region Model
        private string _id = "sys_guid";
        private string _orderno;
        private string _batchno;
        private DateTime? _orderdata;
        private DateTime? _getdata;
        private string _conid;
        private string _cardtypeid;
        private string _chiptypeid;
        private string _formatid;
        private string _startno;
        private string _endno;
        private string _pic;
        private decimal? _orderstatus;
        private string _remark;
        private string _lastupdateuser;
        private DateTime? _lastupdatedate;
        private string _startboxno;
        private string _endboxno;
        private decimal? _cardnumber;
        private decimal? _spareparts;
        private decimal? _premiums;
        private decimal? _badcardnumber;
        private string _Details;

        #region 便于查询字段

        private string _PConNo; //合同编号
        private string _FormatName;//版面名称
        private string _CardTypeName;//卡片名称
        private string _TypeName; //芯片名称
        private string _StatusName; //订单状态名称
        private decimal? _TotalNumber; //订单数量
        private decimal? _CardTotal;//版面总张数

        #endregion

        /// <summary>
        /// 主键ID
        /// </summary>
        public string ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string ORDERNO
        {
            set { _orderno = value; }
            get { return _orderno; }
        }
        /// <summary>
        /// 批次号
        /// </summary>
        public string BATCHNO
        {
            set { _batchno = value; }
            get { return _batchno; }
        }
        /// <summary>
        /// 订单日期
        /// </summary>
        public DateTime? ORDERDATA
        {
            set { _orderdata = value; }
            get { return _orderdata; }
        }
        /// <summary>
        /// 到货日期
        /// </summary>
        public DateTime? GETDATA
        {
            set { _getdata = value; }
            get { return _getdata; }
        }
        /// <summary>
        /// 合同ID
        /// </summary>
        public string CONID
        {
            set { _conid = value; }
            get { return _conid; }
        }
        /// <summary>
        /// 卡类型
        /// </summary>
        public string CARDTYPEID
        {
            set { _cardtypeid = value; }
            get { return _cardtypeid; }
        }
        /// <summary>
        /// 芯片类型
        /// </summary>
        public string CHIPTYPEID
        {
            set { _chiptypeid = value; }
            get { return _chiptypeid; }
        }
        /// <summary>
        /// 版面ID
        /// </summary>
        public string FORMATID
        {
            set { _formatid = value; }
            get { return _formatid; }
        }
        /// <summary>
        /// 订单卡起始号
        /// </summary>
        public string STARTNO
        {
            set { _startno = value; }
            get { return _startno; }
        }
        /// <summary>
        /// 订单卡截止号
        /// </summary>
        public string ENDNO
        {
            set { _endno = value; }
            get { return _endno; }
        }
        /// <summary>
        /// 订单负责人
        /// </summary>
        public string PIC
        {
            set { _pic = value; }
            get { return _pic; }
        }
        /// <summary>
        /// 订单状态
        /// </summary>
        public decimal? ORDERSTATUS
        {
            set { _orderstatus = value; }
            get { return _orderstatus; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string REMARK
        {
            set { _remark = value; }
            get { return _remark; }
        }
        /// <summary>
        /// 最后修改人
        /// </summary>
        public string LASTUPDATEUSER
        {
            set { _lastupdateuser = value; }
            get { return _lastupdateuser; }
        }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LASTUPDATEDATE
        {
            set { _lastupdatedate = value; }
            get { return _lastupdatedate; }
        }

        /// <summary>
        /// 起始箱号
        /// </summary>
        public string STARTBOXNO
        {
            set { _startboxno = value; }
            get { return _startboxno; }
        }
        /// <summary>
        /// 结束箱号
        /// </summary>
        public string ENDBOXNO
        {
            set { _endboxno = value; }
            get { return _endboxno; }
        }
        /// <summary>
        /// 卡片数量
        /// </summary>
        public decimal? CARDNUMBER
        {
            set { _cardnumber = value; }
            get { return _cardnumber; }
        }
        /// <summary>
        /// 备品数量
        /// </summary>
        public decimal? SPAREPARTS
        {
            set { _spareparts = value; }
            get { return _spareparts; }
        }
        /// <summary>
        /// 赠品数量
        /// </summary>
        public decimal? PREMIUMS
        {
            set { _premiums = value; }
            get { return _premiums; }
        }
        /// <summary>
        /// 坏卡数量
        /// </summary>
        public decimal? BADCARDNUMBER
        {
            set { _badcardnumber = value; }
            get { return _badcardnumber; }
        }

        /// <summary>
        /// 类型详细信息 格式如：类型1 ID,数量1|类型2 ID,数量2
        /// </summary>
        public string Details
        {
            get { return _Details; }
            set { _Details = value; }
        }

        /// <summary>
        /// 0 未提交 1 待审核 2 审核中 3 驳回 4 审核不通过 5审核通过
        /// </summary>
        public int IsSubmit
        {
            get;
            set;
        }

        #region 添加便于查询的字段
        /// <summary>
        /// 合同编号
        /// </summary>
        public string PConNo
        {
            set { _PConNo = value; }
            get { return _PConNo; }
        }
        /// <summary>
        /// 合同批次号
        /// </summary>
        public string Pbatchno
        {
            set;
            get;
        }
        /// <summary>
        ///版面名称
        /// </summary>
        public string FormatName
        {
            set { _FormatName = value; }
            get { return _FormatName; }
        }
        /// <summary>
        ///卡片名称
        /// </summary>
        public string CardTypeName
        {
            set { _CardTypeName = value; }
            get { return _CardTypeName; }
        }
        /// <summary>
        ///芯片名称
        /// </summary>
        public string TypeName
        {
            set { _TypeName = value; }
            get { return _TypeName; }
        }

        /// <summary>
        ///订单状态名称
        /// </summary>
        public string StatusName
        {
            set { _StatusName = value; }
            get { return _StatusName; }
        }

         /// <summary>
        ///版面总张数
        /// </summary>
        public decimal? CardTotal
        {
            set { _CardTotal = value; }
            get { return _CardTotal; }
        }
        #endregion

        #endregion Model
    }
}
